# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=noson
pkgver=2.10.3
pkgrel=0
pkgdesc="An easy client interface to drive SONOS player"
url="https://github.com/janbar/noson"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-dev $pkgname-dbg"
makedepends="
	cmake
	flac-dev
	openssl-dev>3
	pulseaudio-dev
	samurai
	zlib-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson/archive/$pkgver.tar.gz
	gcc12.patch
	"
options="!check" # No unit tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=1
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5cfd459b317ad5320311fa25377b1daabc3744fe7a6b78a29d7e9e28f9bb6c2d248b97093f775818e4b9868a30a5b3952210d28d3870fb283d4b7a18111f1b01  noson-2.10.3.tar.gz
18dc5e56f4a08be910cdae6ee6edf0c10c5864ba8712e4d21d357ea2e14bc9f23124b9699c9bf760972855fc1a28f64c071ac5a00b61d22da1bcd442cfe9eaec  gcc12.patch
"
